package com.food.user.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

@Data
@ApiModel("更新完善个人详细信息参数对象")
public class UpdateUserAccountInfoForm {
    @ApiModelProperty("真实姓名")
    private String userInfoRealName;
    @ApiModelProperty("身份证号")
    @Pattern(regexp = "^([1-6][1-9]|50)\\d{4}(18|19|20)\\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$")
    private String userInfoIdCard;
    @ApiModelProperty("性别")
    private Integer userInfoSex;
    @ApiModelProperty("年龄")
    @Max(80)
    @Min(15)
    private Integer userInfoAge;
}
